/*
 * @lc app=leetcode id=14 lang=javascript
 *
 * [14] Longest Common Prefix
 */

// @lc code=start
/**
 * @param {string[]} strs
 * @return {string}
*/
var array =  ["flower","flow","flight"];
var longestCommonPrefix = function(strs) {
    // 取出索引0的元素和之后的元素对比
    let [a,...b] = strs;
console.log(strs.sort());

    
};
longestCommonPrefix(array);

// @lc code=end

